package com.ruoyi.manage.report.service.impl;

import com.ruoyi.common.utils.DateUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.ListUtil;
import com.ruoyi.manage.report.domain.ReportInterface;
import com.ruoyi.manage.report.mapper.ReportInterfaceMapper;
import com.ruoyi.manage.report.service.IReportInterfaceService;
import org.springframework.stereotype.Service;


/**
 * 上报接口信息Service业务层处理
 *
 * @author ruoyi
 * @date 2025-08-24
 */
@Service
public class ReportInterfaceServiceImpl extends ServiceImpl<ReportInterfaceMapper, ReportInterface> implements IReportInterfaceService{


    @Override
    public ReportInterface queryGetById(Long id){
        ReportInterface reportInterface = this.getById(id);
        return reportInterface;
    }

    /**
     * 新增上报接口信息
     *
     * @param reportInterface 上报接口信息
     * @return 结果
     */
    @Override
    public boolean addReportInterface(ReportInterface reportInterface){
        boolean save =this.save(reportInterface);
        return save;
    }

    /**
     * 修改上报接口信息
     *
     * @param reportInterface 上报接口信息
     * @return 结果
     */
    @Override
    public boolean updateReportInterface(ReportInterface reportInterface){
        return this.updateById(reportInterface);
    }

    /**
     * 批量删除上报接口信息
     *
     * @param ids 需要删除的上报接口信息主键
     * @return 结果
     */
    @Override
    public boolean deleteReportInterfaceByIds(Long[] ids){
        return this.removeByIds(ListUtil.toList(ids));
    }

}
